package com.forekenow.Demo8;

public class B extends A {
    @Override
    public boolean login(String username, String password) {
        if ("tom".equals(username)&&"123456".equals(password)){
            return true;
        }
        return false;
    }
}
